package com.lieve.tx.controller;

import com.lieve.tx.entity.City;
import com.lieve.tx.service.CityService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author sunyoboy
 * 2020/9/12
 */
@RestController
public class CityController {

    @Resource
    private CityService cityService;

    @GetMapping("/query")
    public City query() {
        return cityService.query();
    }
}
